﻿using System;
using System.Drawing;
using pub.CmdUI.Cmd;
using pub.CmdUI.UI.Control;
using pub.NET20Fix;

namespace todo.Ribbon.CmdUI
{
    public class RibbonControlUI : IControlUI
    {
        private RibbonControl _control;

        public RibbonControlUI(RibbonControl control)
        {
            _control = control;
        }

        public Action TriggerCallback
        {
            set { }
        }

        public Bitmap Icon
        {
            set { throw new NotImplementedException(); }
        }

        public string Label
        {
            set { throw new NotImplementedException(); }
        }

        public string Tooltip
        {
            set { throw new NotImplementedException(); }
        }

        public void Update(ICmd cmd)
        {
            _control.Enabled = cmd.State.Enabled;
        }
    }
}